package com.schedule.mapper;

import com.schedule.pojo.CompetitionGradeInfo;
import com.schedule.pojo.Player;
import com.schedule.pojo.Player1;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PlayCompetitionMapper {

    /**
     * 根据选手的ID查找该选手参加的比赛及分数
     */
    List<Player1> findCompetitionByPid(Integer pid);

    /**
     * 查找所有选手
     * @return
     */
    List<Player1> findAll();

    /**
     * 根据比赛查找选手及分数
     * @return
     */
    List<CompetitionGradeInfo> findAllByCompetition();
}
